package com.wo.cloud.admin.controller;

import com.wo.cloud.admin.service.ISysUserService;
import com.wo.cloud.admin.util.SysFeignConstant;
import com.wo.cloud.core.entity.Response;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liry
 * @version 1.0
 * @date Created on 2021/5/15 22:43
 * Description: 用户管理
 */

@RestController
@RequestMapping(SysFeignConstant.SYS_USER_BASE_URL)
@Api(tags = "用户管理模块")
public class SysUserController {

    @Autowired
    private ISysUserService userService;

    // 获取用户信息
    @GetMapping("/getUser")
    public Response getUser() {
//        SysUser sysUser = userService.getUserByToken();
//        SysUser user = SecurityUtils.getUser();
//        return Response.data(user);
        return null;
    }

}
